package Vista;
import java.awt.BorderLayout;
import java.awt.event.ActionListener;

import javax.swing.*;


/**
 * This code was edited or generated using CloudGarden's Jigloo
 * SWT/Swing GUI Builder, which is free for non-commercial
 * use. If Jigloo is being used commercially (ie, by a corporation,
 * company or business for any purpose whatever) then you
 * should purchase a license for each developer using Jigloo.
 * Please visit www.cloudgarden.com for details.
 * Use of Jigloo implies acceptance of these licensing terms.
 * A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
 * THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
 * LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
 */
public class VPrincipal extends javax.swing.JFrame {

	private JMenuItem helpMenuItem;
	private JMenu jMenu5;
	private JPanel jPanelPrincipal;
	private JMenuItem deleteMenuItem;
	private JSeparator jSeparator1;
	private JMenuItem pasteMenuItem;
	private JMenuItem copyMenuItem;
	private JMenuItem cutMenuItem;
	private JMenu jMenu4;
	private JMenuItem exitMenuItem;
	private JSeparator jSeparator2;
	private JMenuItem closeFileMenuItem;
	private JMenuItem saveAsMenuItem;
	private JMenuItem saveMenuItem;
	private JMenuItem openFileMenuItem;
	private JMenuItem newFileMenuItem;
	private JMenu jMenu3;
	private JMenuBar jMenuBar1;

	/**
	 * Auto-generated main method to display this JFrame
	 */
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				VPrincipal inst = new VPrincipal();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}

	public VPrincipal() {
		super();
		initGUI();
	}

	private void initGUI() {
		try {
			{
				jPanelPrincipal = new JPanel();
				getContentPane().add(jPanelPrincipal, BorderLayout.CENTER);
				jPanelPrincipal.setLayout(null);
				jPanelPrincipal.setPreferredSize(new java.awt.Dimension(699, 405));
				jPanelPrincipal.setBackground(new java.awt.Color(137,200,250));
			}
			this.setSize(699, 405);
			{
				jMenuBar1 = new JMenuBar();
				setJMenuBar(jMenuBar1);
				{
					jMenu3 = new JMenu();
					jMenuBar1.add(jMenu3);
					jMenu3.setText("Menu de Opciones");
					{
						newFileMenuItem = new JMenuItem();
						jMenu3.add(newFileMenuItem);
						newFileMenuItem.setText("Registrar Umpire");
					}
					{
						openFileMenuItem = new JMenuItem();
						jMenu3.add(openFileMenuItem);
						openFileMenuItem.setText("Registrar Equipo");
					}
					{
						saveMenuItem = new JMenuItem();
						jMenu3.add(saveMenuItem);
						saveMenuItem.setText("Generar Partido");
					}
					{
						saveAsMenuItem = new JMenuItem();
						jMenu3.add(saveAsMenuItem);
						saveAsMenuItem.setText("Simular Juego");
					}

					{
						jSeparator2 = new JSeparator();
						jMenu3.add(jSeparator2);
					}
					{
						exitMenuItem = new JMenuItem();
						jMenu3.add(exitMenuItem);
						exitMenuItem.setText("Salir");
					}
				}


			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	} // Fin initGUI

	public void addListener(ActionListener escuchador){
		newFileMenuItem.addActionListener(escuchador); //Registrar Umpire
		openFileMenuItem.addActionListener(escuchador); //Registrar Equipo
		saveMenuItem.addActionListener(escuchador); //Generar Partidos
		saveAsMenuItem.addActionListener(escuchador); //Simular Juego
		exitMenuItem.addActionListener(escuchador);

	}



} // Fin VPrincipal
